GDK-Win32: Make EGL a runtime opt-in
authorChun-wei Fan <fanchunwei@src.gnome.org>
Mon, 8 Nov 2021 07:37:08 +0000 (15:37 +0800)
committerChun-wei Fan <fanchunwei@src.gnome.org>
Mon, 8 Nov 2021 07:40:59 +0000 (15:40 +0800)
commit41599e5e90b03e5ffa9579337500f9e2ecf690f4
treefb39886d99633c7cb8221654c8987618be3dd64b
parent1b2e69f6c08047983bb1873b6cefed4a79a407f5
GDK-Win32: Make EGL a runtime opt-in

Use the debug envvar 'GDK_DEBUG=gl-egl' to determine whether we want to try to
initialize EGL first before trying WGL, as a means for people to more easily
enable EGL support on Windows to test EGL there (such as to debug the shaders,
for instance)
gdk/win32/gdkdisplay-win32.c